package com.example.controller;

/**
 * Created by on 2018/10/15.
 */

import com.example.config.ResponseBean;
import com.example.config.UnicomResponseEnums;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;
import springfox.documentation.annotations.ApiIgnore;


/**
 * @program: 测试
 * @description:测试接口
 * @author:
 * @create: 2018-10-15 11:26
 **/

@RestController
//@RequestMapping(value = "sayHello")
public class TestController {

    @CrossOrigin
    @RequestMapping(value = "/hello",method = RequestMethod.GET)

    public ResponseBean<UnicomResponseEnums> sayHello(){
        ResponseBean responseBean=new ResponseBean(true,UnicomResponseEnums.SUCCESS_OPTION);
        return responseBean;
    }
}